package com.jungle.common.core.domain;

import lombok.Data;
import org.hibernate.annotations.Comment;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import java.time.LocalDateTime;

/**
 * 基本实体
 */
@Data
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public class CommonEntity extends BaseEntity {
    @Comment("填报人")
    @Column(name = "tbr")
    private String tbr;

    @Comment("填报人电话")
    @Column(name = "tbrdh")
    private String tbrdh;

    @Comment("责任人")
    @Column(name = "zrr")
    private String zrr;

    @Comment("责任人电话")
    @Column(name = "zrrdh")
    private String zrrdh;

    @Comment("录入人")
    @Column(name = "lrr")
    private String lrr;

    @Comment("录入时间")
    @Column(name = "lrsj", columnDefinition = "date")
    private LocalDateTime lrsj;

    @Comment("是否修改")
    @Column(name = "sfxg")
    private String sfxg;

    @Comment("操作人员")
    @Column(name = "czry")
    private String czry;

    @Comment("最后修改时间")
    @Column(name = "zhxgsj", columnDefinition = "date")
    private LocalDateTime zhxgsj;

}
